package com.itljm.cxrMarket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysPermissionService extends IService<SysPermission> {
    List<SysPermission> selectPermissionPage(Page<SysPermission> page, Wrapper<SysPermission> entityWrapper);
    // 添加或更新权限
    boolean addOrUpdate(SysPermission sysPermission);
    // 根据ID删除权限
    boolean deleteById(Long id);
    // 根据ID查询权限
    SysPermission selectById(Long id);
}
